package com.nuaa.ange.controller;


import com.nuaa.ange.annotation.ApiLog;
import com.nuaa.ange.common.lang.RespBean;
import com.nuaa.ange.entity.Tag;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * @description 
 * @author 玦离
 * @date 2023/1/2 21:36
 */

@RestController
@RequestMapping("/tag")
public class TagController extends BaseController{

    @ApiOperation(value = "发布词条")
    @PostMapping("/insert")
    @ApiLog
    public RespBean insertTag(Tag tag) {
        tagService.save(tag);
        return RespBean.ok("添加词条成功");
    }

}
